package giftmail.dao;

import java.util.List;
import java.util.Map;

import giftmail.model.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    //查看User表List
    public List<User> findUser();
    
    //查看User表List分页
    public List<User> findUserListByPage(Map<String,Object> parameter);
    
    //根据id查询对象
    public User findUserById(Integer id);
    
    //用户更新
    public int update(User user);
    
    //登录
    public List<User> login(User user);
}